<template>
  <div class="pos" ref="header">
    <span class="iconfont pos-icon">&#xe602;</span>
    <span class="pos-text">杭州大厦</span>
    <span class="iconfont pos-jt">&#xe6aa;</span>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  mounted () {
    var header = this.$refs.header
    this.$emit('headerHeight', header.offsetHeight)
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/common.styl'
  .pos
    line-height $headerHeight
    color #ffffff
    font-size .35rem
    padding-left .2rem
    $bgGradient()
    .pos-icon
      font-size .38rem
</style>
